package dm

// Ver get version
func (com DmSoft) Ver() string {
	ver, _ := com.dm.CallMethod("Ver")
	return ver.ToString()
}

func (com *DmSoft) Reg(regCode string, verInfo string) int {
	ret, _ := com.dm.CallMethod("Reg", regCode, verInfo)
	return int(ret.Val)
}
